import request from '@/utils/request'

// 查询试驾预约信息列表
export function listDriveInfo(query) {
  return request({
    url: '/business/driveInfo/list',
    method: 'get',
    params: query
  })
}

// 查询试驾预约信息详细
export function getDriveInfo(id) {
  return request({
    url: '/business/driveInfo/' + id,
    method: 'get'
  })
}

// 新增试驾预约信息
export function addDriveInfo(data) {
  return request({
    url: '/business/driveInfo',
    method: 'post',
    data: data
  })
}

export function addfankuixinxi(data) {
  return request({
    url: '/business/driveInfo/fankuixinxi',
    method: 'post',
    data: data
  })
}



// 修改试驾预约信息
export function updateDriveInfo(data) {
  return request({
    url: '/business/driveInfo',
    method: 'put',
    data: data
  })
}

// 删除试驾预约信息
export function delDriveInfo(id) {
  return request({
    url: '/business/driveInfo/' + id,
    method: 'delete'
  })
}
